package com.dbb.entity.order

import java.util.Date
import com.dbb.entity.company.Company

class Orders {
	Integer orderNum
	String orderRef
	String type
	Date orderDate
	String payment
	String deliveryPlace
	Date deliveryDate
	Company supplier
	Company customer
	
	String status
	
	String productionDesc
	String inspection
	String discrepancyAndClaim
	
	static hasMany = [items : OrderItem]
	
    static constraints = {
		orderNum blank : false
    }
	
	String toString() {
		return orderNum
	}
}
